package com.csdemos.algs.function;

public class MultiplicationHashFunction implements HashFunction{

    public static final float a = 0.14159265358979323846264338327f;
    
    @Override
    public int hash(int value) {
        double tmp = a * value;   
        return (int) (m * (tmp - (int) tmp));
    }
    
}
